//
//  kuaiDiViewController.m
//  shopping
//
//  Created by 马田成 on 2017/10/9.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "kuaiDiViewController.h"

@interface kuaiDiViewController ()
{
    
    UIWebView *webView;
    
}
@end

@implementation kuaiDiViewController

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:NO];
    
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setTitle:@"查看物流"];
    
    webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, DEF_SCREEN_WIDTH, DEF_SCREEN_HEIGHT- 49)];
    NSString *str = @"https://m.kuaidi100.com/index_all.html?type=";
    NSString *str1 =[str stringByAppendingString:self.kuaidi_name];
    
    NSString *urlStr = [[str1 stringByAppendingString:@"&postid="] stringByAppendingString:self.orderID];
    
    NSLog(@"%@", urlStr);

    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]];
    
    [self.view addSubview: webView];
    [webView loadRequest:request];
    // Do any additional setup after loading the view.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
